package com.jiu345.api.service;

import com.jiu345.api.pojo.Banner;
import com.jiu345.api.pojo.Cart;
import com.jiu345.api.pojo.vo.CartVo;
import com.jiu345.core.page.PageQuery;
import com.jiu345.core.page.TableDataInfo;
import com.jiu345.users.pojo.bo.CartBo;
import jakarta.validation.constraints.NotEmpty;
import org.dromara.common.core.domain.R;

import java.util.Collection;
import java.util.List;

/**
 * package:IGoodsCateService
 * @author MrLei QQ:235921049
 * @date 2024-07-19
 * desc:购物车
 */
public interface ICartService {

    /*根据用户ID查询购物车列表*/
    TableDataInfo<CartVo> selectByUserIdPageList(PageQuery pageQuery);
    /*添加购物车*/
    Boolean insertByBo(Cart bo);
   /* 删除购物车商品*/
    Boolean deleteSkuGoodsByIds(Collection<String> ids, Boolean isValid);
    /*修改购物车商品数量*/
    Boolean updateNumber(CartBo bo);
    /*购物车全选/取消*/
    Boolean isCheckedAll(CartBo bo);
}
